package com.itheima;

public class Demo02OverLoad {
    public static void main(String[] args) {
        System.out.println(getsum(10,11));
        System.out.println(getsum(10,20,30));
        System.out.println(getsum(10.0,12.0));
        System.out.println(getsum(30.1,20.0,15.0));
    }
    public static int getsum(int a,int b){
        System.out.println("两个int数字的和");
        return a+b;
    }
    public  static int getsum(int a,int b,int c){
        System.out.println("三个int数字的和");
        return a+b+c;
    }
    public static double getsum(double a,double b){
        System.out.println("两个double数字的和");
        return a+b;
    }
    public static double getsum(double a,double b,double c){
        System.out.println("三个double数字的和");
        return a+b+c;
    }
}
